AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

The interface for an HTTP request that is agnostic of the underlying HTTP API.

Inheritance Hierarchy

Amazon.Runtime.IHttpRequest<>

Namespace: Amazon.Runtime
Assembly: AWSSDK.Core.dll
Version: 3.x.y.z

Syntax

C#
public interface IHttpRequest<>
         IDisposable

The IHttpRequest<> type exposes the following members

Properties

NameTypeDescription
Public Property Method System.String

The HTTP method or verb.

Public Property RequestUri System.Uri

The request URI.

Methods

Note:

Asynchronous operations (methods ending with Async) in the table below are for .NET 4.5 or higher. For .NET 3.5 the SDK follows the standard naming convention of BeginMethodName and EndMethodName to indicate asynchronous operations - these method pairs are not shown in the table below.

NameDescription
Public Method Abort()

Aborts the HTTP request.

Public Method ConfigureRequest(IRequestContext)

Configures a request as per the request context.

Public Method GetRequestContent()

Gets a handle to the request content.

Public Method GetRequestContentAsync()

Gets a handle to the request content.

Public Method GetRequestContentAsync(CancellationToken)
Public Method GetResponse()

Returns the HTTP response.

Public Method GetResponseAsync(CancellationToken)

Returns the HTTP response.

Public Method SetRequestHeaders(IDictionary<String, String>)

Sets the headers on the request.

Public Method SetupProgressListeners(Stream, Int64, object, EventHandler<StreamTransferProgressArgs>)

Sets up the progress listeners

Public Method WriteToRequestBody(TRequestContent, Stream, IDictionary<String, String>, IRequestContext)

Writes a stream to the request body.

Public Method WriteToRequestBody(TRequestContent, Byte[], IDictionary<String, String>)

Writes a byte array to the request body.

Public Method WriteToRequestBodyAsync(TRequestContent, Stream, IDictionary<String, String>, IRequestContext)
Public Method WriteToRequestBodyAsync(TRequestContent, Byte[], IDictionary<String, String>, CancellationToken)

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5